<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <div th:include="sys/header :: copy"></div>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
<!--                <i-col span="4">-->
<!--                    <i-input v-model="q.sendId" @on-enter="query" placeholder="发送编号"/>-->
<!--&lt;!&ndash;                </i-col>&ndash;&gt;-->
<!--                <i-button @click="query">查询</i-button>-->
<!--                <i-button @click="reloadSearch">重置</i-button>-->
            </div>
            <div class="buttons-group">
                <i-button type="success" @click="addConfig"><i class="fa fa-sun-o"></i>&nbsp;短信配置</i-button>
                <i-button type="info" @click="sendSms"><i class="ivu-icon ivu-icon-android-send"></i>&nbsp;发送短信
                </i-button>
            </div>
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="config" :label-width="80">
            <Form-item label="短信类型" prop="type">
                <Radio-group >
                        <span>阿里云</span>
                </Radio-group>
            </Form-item>
            <Form-item label="AccessKey ID" prop="domain">
                <i-input v-model="config.accessKeyId" placeholder="AccessKey ID"/>
            </Form-item>
            <Form-item label="Access Key Secret" prop="name">
                <i-input v-model="config.accessKeySecret" placeholder="Access Key Secret"/>
            </Form-item>
            <Form-item label="模版CODE" prop="pwd">
                <i-input v-model="config.code" placeholder="模版CODE"/>
            </Form-item>
            <Form-item label="签名名称" prop="sign">
                <i-input v-model="config.signName" placeholder="【签名名称】"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="updateConfig">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>
<script th:src="@{/js/sys/smslog.js}"></script>
</body>
</html>